package com.vastcom.sigma.admin.model;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.sql.Date;

@Entity
public class Matincoming {
    private String matariaincomingid;
    private String pc;
    private String pm;
    private String cpxx;
    private Date rkrq;
    private Integer sl;
    private String gg;
    private String gys;
    private String cgy;
    private String ckgly;
    private String blockchain;

    @Id
    @Column(name = "matariaincomingid")
    public String getMatariaincomingid() {
        return matariaincomingid;
    }

    public void setMatariaincomingid(String matariaincomingid) {
        this.matariaincomingid = matariaincomingid;
    }

    @Basic
    @Column(name = "pc")
    public String getPc() {
        return pc;
    }

    public void setPc(String pc) {
        this.pc = pc;
    }

    @Basic
    @Column(name = "pm")
    public String getPm() {
        return pm;
    }

    public void setPm(String pm) {
        this.pm = pm;
    }

    @Basic
    @Column(name = "cpxx")
    public String getCpxx() {
        return cpxx;
    }

    public void setCpxx(String cpxx) {
        this.cpxx = cpxx;
    }

    @Basic
    @Column(name = "rkrq")
    public Date getRkrq() {
        return rkrq;
    }

    public void setRkrq(Date rkrq) {
        this.rkrq = rkrq;
    }

    @Basic
    @Column(name = "sl")
    public Integer getSl() {
        return sl;
    }

    public void setSl(Integer sl) {
        this.sl = sl;
    }

    @Basic
    @Column(name = "gg")
    public String getGg() {
        return gg;
    }

    public void setGg(String gg) {
        this.gg = gg;
    }

    @Basic
    @Column(name = "gys")
    public String getGys() {
        return gys;
    }

    public void setGys(String gys) {
        this.gys = gys;
    }

    @Basic
    @Column(name = "cgy")
    public String getCgy() {
        return cgy;
    }

    public void setCgy(String cgy) {
        this.cgy = cgy;
    }

    @Basic
    @Column(name = "ckgly")
    public String getCkgly() {
        return ckgly;
    }

    public void setCkgly(String ckgly) {
        this.ckgly = ckgly;
    }

    @Basic
    @Column(name = "blockchain")
    public String getBlockchain() {
        return blockchain;
    }

    public void setBlockchain(String blockchain) {
        this.blockchain = blockchain;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Matincoming that = (Matincoming) o;

        if (matariaincomingid != null ? !matariaincomingid.equals(that.matariaincomingid) : that.matariaincomingid != null)
            return false;
        if (pc != null ? !pc.equals(that.pc) : that.pc != null) return false;
        if (pm != null ? !pm.equals(that.pm) : that.pm != null) return false;
        if (cpxx != null ? !cpxx.equals(that.cpxx) : that.cpxx != null) return false;
        if (rkrq != null ? !rkrq.equals(that.rkrq) : that.rkrq != null) return false;
        if (sl != null ? !sl.equals(that.sl) : that.sl != null) return false;
        if (gg != null ? !gg.equals(that.gg) : that.gg != null) return false;
        if (gys != null ? !gys.equals(that.gys) : that.gys != null) return false;
        if (cgy != null ? !cgy.equals(that.cgy) : that.cgy != null) return false;
        if (ckgly != null ? !ckgly.equals(that.ckgly) : that.ckgly != null) return false;
        if (blockchain != null ? !blockchain.equals(that.blockchain) : that.blockchain != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = matariaincomingid != null ? matariaincomingid.hashCode() : 0;
        result = 31 * result + (pc != null ? pc.hashCode() : 0);
        result = 31 * result + (pm != null ? pm.hashCode() : 0);
        result = 31 * result + (cpxx != null ? cpxx.hashCode() : 0);
        result = 31 * result + (rkrq != null ? rkrq.hashCode() : 0);
        result = 31 * result + (sl != null ? sl.hashCode() : 0);
        result = 31 * result + (gg != null ? gg.hashCode() : 0);
        result = 31 * result + (gys != null ? gys.hashCode() : 0);
        result = 31 * result + (cgy != null ? cgy.hashCode() : 0);
        result = 31 * result + (ckgly != null ? ckgly.hashCode() : 0);
        result = 31 * result + (blockchain != null ? blockchain.hashCode() : 0);
        return result;
    }
}
